package com.woniuxy.movice.handler;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.woniuxy.movice.dto.AllComment;
import com.woniuxy.movice.entity.Cinema;
import com.woniuxy.movice.mapper.PayMapper;
import com.woniuxy.movice.service.CinemaService;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.Data;

@Data
@Controller
@RequestMapping("/comment")
@Api("电影院信息")
public class CommentController {
	
	@Resource
	private CinemaService cinemaService;
	
	@ApiOperation(value="展示所有评论")
	@RequestMapping(value="/allComment",method=RequestMethod.GET)
	@ResponseBody
	public List<AllComment> allComment(){
		return cinemaService.showAllComment();
	}

}
